import Layout from '@/page/layout/';
import wuyeRouter from './wuye/';

const _import = require('../_import');

const path = 'views';

export default [{
    path: '/code',
    name: '二维码',
    component: _import('code/index', path),
}, {
    path: '/code/success',
    name: '开门成功',
    component: _import('code/success', path),
}, {
    path: '/invitation',
    name: '邀请好友',
    component: _import('invitation/index', path),
}, {
    path: '/roles',
    name: '权限选择',
    component: _import('roles/index', path),
}, {
    path: '/rate/index',
    name: '物业人员评价',
    component: _import('rate/index', path),
}, {
    path: '/file',
    name: '文件操作',
    component: _import('file/index', path),
}, {
    path: '/auth',
    name: '授权',
    component: _import('auth/index', path),
}, {
    path: '/community',
    name: '小区列表',
    component: _import('community/index', path),
}, {
    path: '/guarantee',
    name: '事故保修列表',
    component: _import('guarantee/index', path),
}, {
    path: '/guarantee/add',
    name: '事故保修新增',
    component: _import('guarantee/add', path),
}, {
    path: '/guarantee/:id',
    name: '事故保修详情',
    component: _import('guarantee/detail', path),
}, {
    path: '/notice/:id',
    name: '社区公告详情',
    component: _import('life/detail'),
}, {
    path: '/estate/index',
    name: '生活缴费',
    component: _import('estate/index', path),
}, {
    path: '/estate/oldList',
    name: '生活缴费记录',
    component: _import('estate/oldList', path),
}, {
    path: '/complaint',
    name: '投诉建议列表',
    component: _import('complaint/index', path),
}, {
    path: '/complaint/add',
    name: '投诉建议新增',
    component: _import('complaint/add', path),
}, {
    path: '/complaint/:id',
    name: '投诉建议详情',
    component: _import('complaint/detail', path),
}].concat(wuyeRouter);